<HTML
><HEAD
><TITLE
>GR_EVENT_TYPE</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
"><LINK
REL="HOME"
TITLE="Nano-X Library API"
HREF="index.html"><LINK
REL="UP"
TITLE="Nano-X Data Types"
HREF="nxstruct.html"><LINK
REL="PREVIOUS"
TITLE="GR_EVENT_SCREENSAVER"
HREF="nxstruct_GR_EVENT_SCREENSAVER.html"><LINK
REL="NEXT"
TITLE="GR_EVENT_UPDATE"
HREF="nxstruct_GR_EVENT_UPDATE.html"></HEAD
><BODY
CLASS="REFENTRY"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Nano-X Library API</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="nxstruct_GR_EVENT_SCREENSAVER.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="nxstruct_GR_EVENT_UPDATE.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="NXSTRUCT.GR.EVENT.TYPE"
>GR_EVENT_TYPE</A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN9872"
></A
><H2
>Name</H2
>GR_EVENT_TYPE&nbsp;--&nbsp;Event types</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN9875"
></A
><H2
>Synopsis</H2
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>typedef int GR_EVENT_TYPE;
  </PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN9877"
></A
><H2
>Description</H2
><P
>    A <SPAN
CLASS="TYPE"
>GR_EVENT_TYPE</SPAN
> enumeration type identifies the type
    of event that a window is receiving. When a window receives an
    event, the associated <A
HREF="nxstruct_GR_EVENT.html"
><SPAN
CLASS="STRUCTNAME"
>GR_EVENT</SPAN
></A
>
    structure contains a field that specifies the event type.
  </P
><P
>    The following table shows all of the available enumeration values
    that can be assigned to a <SPAN
CLASS="TYPE"
>GR_EVENT_TYPE</SPAN
> variable.
  </P
><DIV
CLASS="TABLE"
><A
NAME="AEN9885"
></A
><P
><B
>Table 3-1. Event Type Enumerations</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>Value</TH
><TH
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_ERROR</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when run time errors
        occur on the nano-X server. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_ERROR.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_ERROR</SPAN
></A
>
        structure.
        </TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_NONE</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event type is not used.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_EXPOSURE</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when a portion
        of a window becomes visible and needs to be redrawn. It is
        sent along with a 
        <A
HREF="nxstruct_GR_EVENT_EXPOSURE.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_EXPOSURE</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_BUTTON_DOWN</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when any one or
        more of the mouse butttons is pressed. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_BUTTON.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_BUTTON</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_BUTTON_UP</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when any one or
        more of the mouse butttons is released. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_BUTTON.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_BUTTON</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_MOUSE_ENTER</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when the mouse moves onto
        the window specified within the event. 
        It is sent along with a <A
HREF="nxstruct_GR_EVENT_GENERAL.html"
><SPAN
CLASS="STRUCTNAME"
>GR_EVENT_GENERAL</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_MOUSE_EXIT</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when the mouse
        moves off of the window specified within the event. It is sent
        along with a 
        <A
HREF="nxstruct_GR_EVENT_GENERAL.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_GENERAL</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_MOUSE_MOTION</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when the mouse
        moves. One of these events is queued for each movement o fthe
        mouse. Therefore a large number of these events may build up
        in the event queue. Since none of thes events are thrown away
        these events will reflect a accurate tracking of the mouse movements.
        It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_MOUSE.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_MOUSE</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_MOUSE_POSITION</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when the mouse
        moves. These events do NOT build up in the event queue. On each
        mouse movement the event queue is purged of any events of this
        type before another event of this  type is placed in the
        queue. This queueing behavior makes this event ideal for
        realtime response, such as rubber banding or dragging. It is
        sent along with a 
        <A
HREF="nxstruct_GR_EVENT_MOUSE.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_MOUSE</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_KEY_DOWN</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when a key on
        the keyboard is pressed. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_KEYSTROKE.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_KEYSTROKE</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_KEY_UP</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is not used in Microwindows revision 0.89pre6.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_FOCUS_IN</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when the focus moves to
        the window specified within the event. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_GENERAL.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_GENERAL</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_FOCUS_OUT</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when the focus
        moves away from the window specified within the event. It is
        sent along with a 
        <A
HREF="nxstruct_GR_EVENT_GENERAL.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_GENERAL</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_FDINPUT</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when data is
        available for reading on a file descriptor previously
        registered with the 
        <A
HREF="nxapi_GrRegisterInput.html"
>        <TT
CLASS="FUNCTION"
>GrRegisterInput()</TT
></A
> function.
        It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_FDINPUT.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_FDINPUT</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_UPDATE</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when an update
        occurs to the window specified within the event. Window
        updates occur when the window is moved, resized, mapped,
        unmapped, activated or destroyed. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_UPDATE.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_UPDATE</SPAN
></A
>
        structure.</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_CHLD_UPDATE</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client when an update
        occurs to a child of the window specified within the
        event. Window updates occur when the window is moved, resized,
        mapped, unmapped, activated or destroyed. It is sent along
        with a 
        <A
HREF="nxstruct_GR_EVENT_UPDATE.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_UPDATE</SPAN
></A
>
        structure.</TD
></TR
><TR
><A
NAME="NXSTRUCT.GR.EVENT.TYPE.CLOSE.REQ"><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_CLOSE_REQ</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client just before the window
        specified within the event is closed. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_GENERAL.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_GENERAL</SPAN
></A
>
        structure.
        </TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_TIMEOUT</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client whenever the servers
        select loop times out. The event is sent regardless of whether
        it has been enabled by the client. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_GENERAL.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_GENERAL</SPAN
></A
>
        structure.
        </TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_SCREENSAVER</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This event is sent to the nano-X client whenever the servers
        screensaver timer times out. It is sent along with a 
        <A
HREF="nxstruct_GR_EVENT_SCREENSAVER.html"
>        <SPAN
CLASS="STRUCTNAME"
>GR_EVENT_SCREENSAVER</SPAN
></A
>
        structure.
        </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_CLIENT_DATA_REQ</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_CLIENT_DATA</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_EVENT_TYPE_SELECTION_CHANGED</TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TBODY
></TABLE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="nxstruct_GR_EVENT_SCREENSAVER.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="nxstruct_GR_EVENT_UPDATE.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><SPAN
CLASS="STRUCTNAME"
>GR_EVENT_SCREENSAVER</SPAN
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="nxstruct.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><SPAN
CLASS="STRUCTNAME"
>GR_EVENT_UPDATE</SPAN
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>